package top.cyc.springboot02weblearning.service.impl;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import top.cyc.springboot02weblearning.dao.BookDao;
import top.cyc.springboot02weblearning.entity.Book;
import top.cyc.springboot02weblearning.service.BookService;
import org.springframework.stereotype.Service;

/**
 * (Book)表服务实现类
 *
 * @author makejava
 * @since 2019-11-15 21:58:21
 */
@Service("bookService")
public class BookServiceImpl extends ServiceImpl<BookDao, Book> implements BookService {


    public void addBook(Book book){
        BaseMapper bookDao = getBaseMapper();
        bookDao.insert(book);
    }
}
